<script setup>
  import {ref, reactive} from 'vue'
  let data = ref({
    msg:"hello"
  })

  let message = reactive("hello,vue")

  let test = ()=>{
      data.value.msg = "你好"
      message = "你好，vue"
  }
</script>

<template>
  <div>
    <h1>{{data.msg}}</h1>
    <h1>{{message}}</h1>
    <input type="button" value="点击" @click="test">
  </div>
</template>

<style scoped>
  
</style>
